package clustering;

import java.util.HashSet;
import java.util.Set;

import components.Operator;

//the class is a data structure, which is responsible for maintaining set of vertices,
//each on of which is an operator. 
//every agent will have finally one instance of this class.
public class VerticesSet {
//FIELDS
	private Set<Operator> vertexSet;
	
//CONSTRUCTORS	
	public VerticesSet() {
		this.vertexSet = new HashSet<Operator>();
	}
	
	public VerticesSet(Set<Operator> verSet) {
		this.vertexSet = verSet;
	}
	
//METHODS	
	public Set<Operator> getNodesSet(){
		return this.vertexSet;
	}
	
	public void addNode(Operator v){
		this.vertexSet.add(v);
	}
	
	public void deleteNode(Operator v){
		this.vertexSet.remove(v);
	}

}
